I have a java maven project , i installed scala plugin for eclipse and added scala nature to my project . Now , i have written some custom scala Actors and some other utility classes .I am using these scala classes in my java code . while writing the code , it doesn't throw any errors .But , when i do maven clean /build , it throws compilation error's like below
11/8/11 10:45:23 AM : [ERROR] ............\Simple.java:[86,10] cannot find symbol
symbol : variable ExecutorObject
location: class com.ms.scala.Simple
11/8/11 10:45:23 AM : [INFO] 2 errors
11/8/11 10:45:23 AM : [INFO] -------------------------------------------------------------
11/8/11 10:45:23 AM : Build errors for Project; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project : Compilation failure
Eclipse IDE : helios -3.5 , Scala - 2.9.2 which comes with the plugin
i guess there is a custom compiler configuration for doing this ? i also have an other newbie question
how do you start scala actor directly in java and send a message to it ? all i can see is the act() method . i want to do this
actor {
CustomActor ! Message
}
in java
thank you sanre6
actormethod, and hence automatically start an actor in Java (that because Java does not yet support closures).